﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ MasterType VirtualPath="~/Views/Shared/Site.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Khách Hàng
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
	<hr />
	<ul class="breadcrumb">
        <li>
	        <a href="<%=Url.Action("Index","Home")%>">Trang Chủ</a> <span class="divider">/</span>
        </li>
        <li>
	        <a href="#">Quản Trị Khách Hàng</a>
        </li>
	</ul>
	<hr />
</div>
<div class="row-fluid">		
	<div class="box span12">
		<div class="box-header" data-original-title="">
			<h2><i class="icon-user"></i><span class="break"></span>Quản Trị Khách Hàng</h2>
			<div class="box-icon">
				<a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
			</div>
		</div>
        <div class="box-content" id="courses-grid">
            <table class="table table-striped table-bordered bootstrap-datatable datatable">
                <thead>
                    <tr>
                        <th width="50">Mã</th>
                        <th>Tên Khách Hàng</th>
                        <th width="90">Khu Vực</th>
                        <th width="90">Tel</th>
                        <th width="90">Fax</th>
                        <th width="90">Ngân Hàng</th>
                        <th width="120">Số Tài Khoản</th>
                        <th width="90">Mã Số Thuế</th>
                        <th width="90">Ngày Cập Nhật</th>
                        <th width="50">Action</th>
                    </tr>
                </thead>
                <tbody>
                    <% int odd = 0; foreach (var it in (IEnumerable<WebMVC.KhachHang>)ViewData["Items"])
                       { %>
                    <tr class="<%=odd%2==0?"odd":"even" %>">
                        <td class="tc"><%=it.ID %></td>
                        <td><%=it.Ten %></td>
                        <td class="tc"><%=it.KhuVuc.Ten %></td>
                        <td class="tc"><%=it.Tel %></td>
                        <td class="tc"><%=it.Fax %></td>
                        <td class="tc"><%=it.Ngan_hang %></td>
                        <td class="tc"><%=it.So_tai_khoan %></td>
                        <td class="tc"><%=it.Ma_so_thue %></td>
                        <td class="tc"><%=it.Ngay_cap_nhat_cuoi %></td>
                        <td class="button-column tc">
                            <a class="update" title="Edit" href="<%=Url.Action("Edit", "KhachHang", new {id = it.ID}) %>">
                                <img src="../../Content/images/led-ico/pencil.png" alt="Update">
                            </a>
                            <a class="delete" title="Delete" href="<%=Url.Action("Delete", "KhachHang", new {id = it.ID}) %>">
                                <img src="../../Content/images/led-ico/delete.png" alt="Delete">
                            </a>
                        </td>
                    </tr>
                    <% odd++; %>
                    <% } %>
                </tbody>
            </table>
        </div>
    </div>
</div>
<hr />
</asp:Content>
